<template>
  <div id="app">
    
   <router-link to="/discover">发现</router-link>
   <br>
   <router-link to="/friend">朋友</router-link>
   <br>
   <router-link to="/mine">个人中心</router-link>
   <br>
   <router-link to="/list">商品列表</router-link>
   <br>
   <button @click="jump">我是一个“按钮”</button>
   <router-view></router-view>

  </div>
</template>

<script>


export default {
  data(){
    return{
      msg:'app组件'
    }
  },
  methods: {
    jump() {
     this.$router.push({ path: '/mine', query: { name: '嘿嘿' } })
    }
}
}
</script>